﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class CaptureScreenShot : MonoBehaviour
{
    // Use this for initialization
    private void Start()
    {
    }

    // Update is called once per frame
    private void Update()
    {
        if (Input.GetKeyDown(KeyCode.P))
        {
            ScreenCapture.CaptureScreenshot("Screenshot" + Time.time + ".png", 0);
        }
    }
}